//
//  ViewController.m
//  CAShapLayerTest
//
//  Created by Housir on 2018/1/31.
//  Copyright © 2018年 侯玉坤. All rights reserved.
//

#import "ViewController.h"
#import "ViewController1.h"

@interface ViewController ()<UITableViewDelegate,UITableViewDataSource>

@property (weak, nonatomic) IBOutlet UITableView *tableView;
@property (nonatomic, strong)NSMutableArray *muArray;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.tableView.separatorInset = UIEdgeInsetsMake(0, 0, 0, 0);
    self.tableView.rowHeight = 60;
    self.muArray = [[NSMutableArray alloc]initWithObjects:@"实心矩形",@"空心矩形",@"圆角图形",@"扇形",@"圆",@"右上圆角",@"椭圆",@"曲线",@"S型曲线",@"动画绘制S型曲线",@"中间向两边画",@"动画绘制曲线 线边宽",@"动画画圆",@"时光网APP 购票layer",@"画饼图",@"动画画空心矩形",@"动画饼图",@"五角星", nil];
}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return self.muArray.count;
}
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"cell"];
    if (cell == nil) {
        cell = [[UITableViewCell alloc]initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:@"cell"];
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
    }
    cell.textLabel.text = self.muArray[indexPath.row];
    return cell;
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    ViewController1 *VC = [[ViewController1 alloc]init];
    VC.title = self.muArray[indexPath.row];
    [self.navigationController pushViewController:VC animated:YES];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
